<@master template="master/master-loan" title="征信准入详情">
<@css href="/easyui/themes/default/easyui.css"/>
<@css href="/easyui/themes/icon.css"/>
<@js src="/easyui/jquery.easyui.min.js"/><@jsRender/>

 <div class="detailsBox pb80">
 <#assign custType=loanapply.wfType />
 <!-- 作废信息 start -->
	<#if custType == "T">
		<div class="action-ajax-load"
			data-url="<@url value='/rbadloan/cancleDetail?loanapplyNo=${loanapply.loanapplyNo}' />"></div>
	</#if>
	<div class="detailsBox">
	 <div class="openBox">
	 <!-- 贷款要素 begin -->
	 <h3><i class="jtIco"></i>贷款要素
     </h3>
		<div class="action-ajax-load" data-url="/rback/l_i_common?loanapplyNo=${loanapply.loanapplyNo}"></div>	
	 <!-- 贷款要素  end -->
     </div>
    </div>
	
	<!-- 借款人和配偶基本信息 begin -->
	<div class="action-ajax-load"
			data-url="<@url value='/rloanstart/serviceView?loanapplyNo=${loanapply.loanapplyNo}&type=readonly' />">
			<p class="onload"></p>
	</div>
	<!-- 借款人和配偶基本信息 end -->
	
	<!-- 夫妻双方征信负债情况 begin -->
	<#if creditReport!=null>
		<div class="openBox">
			<h3>
				<i class="jtIco1"></i>夫妻双方征信负债情况 <@permission
				permissionName="updateCredit"> <#if loanEntity.wfType=='Z' ||
				loanEntity.wfType=='ZF'> <a class="action-ajax-btn fr edit btn_blue"
					data-url="<@url value='/workflowcheck/editZX?referId=${zXSSYHForm.referId}'/>">编辑</a>
				</#if> </@permission>
			</h3>
			<div class="action-ajax-load-show" id="file_uploader"
				data-url="<@url value='/detail/editCredit?referId=${loanapply.loanapplyNo}'/>"
				data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div>
		</div>
	</#if>
	<!-- 夫妻双方征信负债情况  end -->
	
	<!-- 夫妻双方征信报告 begin -->
		<div class="action-ajax-load"
			data-url="<@url value='/o2ozx/zxbgViewNot?loanapplyNo=${loanapply.loanapplyNo}'/>"></div>
	<!-- 夫妻双方征信报告 end -->
	
	<!-- 附件信息 begin -->
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco"></i>借款人征信附件
		</h3>
		<div class="action-ajax-load"
			data-url="<@url value='/ro2ozx/detailUploadView?id=${userZxId}&readonly=${datalistReadonly}' />">
			<p class="onload"></p>
		</div>
	</div>
	<#if mateZxId!=""&&mateZxId!=null>
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco"></i>配偶征信附件
		</h3>
		<div class="action-ajax-load"
			data-url="<@url value='/ro2ozx/detailUploadView?id=${mateZxId}&readonly=${datalistReadonly}' />">
			<p class="onload"></p>
		</div>
	</div>
	</#if>
	<!-- 附件信息 end -->
	<!-- 企业征信begin  -->
			<div class="action-ajax-load"
			data-url="<@url value='/enterpriseZx/zxbgTDViewNot?loanapplyNo=${loanapply.loanapplyNo}'/>"></div>
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco"></i>企业征信附件信息
		</h3>
		<div class="action-ajax-load"
			data-url="<@url value='/ro2ozx/detailUploadView?id=${O2oEnterpriseZxEntity.id}&readonly=true' />">
			<p class="onload"></p>
		</div>
	</div>		
	<!-- 企业征信end  -->
	<!-- 补充征信附件信息 begin -->
	  <div class="openBox">
		    <h3 class="mt20"><i class="jtIco1"></i>补充征信附件信息
		    </h3>
	        <div  class="action-ajax-load-show" data-url="/o2ozx/supplementFile?loanapplyNo=${loanapply.loanapplyNo}&readonly=true" ></div>
		</div>
	<!--补充征信附件信息 end -->
	<!-- 其他附件信息 begin -->
	  <div class="openBox">
		    <h3 class="mt20"><i class="jtIco"></i>其他附件信息
		    <a class="action-ajax-btn fr" data-action-html="#o2o_file" href="/o2oloanapply/datalist?loanApplyNo=${loanapply.loanapplyNo}">刷新</a>
		    </h3>
	       	<div class="dataBable">
	            <div id="o2o_file" class="action-ajax-load" data-url="/o2oloanapply/datalist?loanApplyNo=${loanapply.loanapplyNo}"></div>
			 </div>    
		</div>
	<!--其他附件信息 end -->
	
	<!-- 夫妻双方贷款记录  begin -->
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco1"></i>夫妻双方的贷款记录
		</h3>
		<div class="action-ajax-load-show"
		data-url="<@url value='/customerInfo/rest/loan_detail?customer_id_number=${loanUser.documentNo}&mate_id_number=${loanSorpouseUser.documentNo}' />"
		data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none">
	</div>
	</div>
	<!-- 夫妻双方贷款记录  end -->
	
		<!-- 代偿数据 begin -->
	<div class="openBox">
		<h3 class="mt20">
		<i class="jtIco1"></i>夫妻双方代偿数据
		</h3>
	<div id="bad_loan_page" class="action-ajax-load" 
		data-url="<@url value='/rbadloan/badLoanPage?idCard=${loanUser.documentNo}&spouseIdCard=${materEntity.documentNo}'/>"
		data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div>
	</div>
<!-- 代偿数据  end -->
<!-- 逾期数据 begin -->
	<div class="openBox">
		<h3 class="mt20">
		<i class="jtIco1"></i>夫妻双方逾期数据
		</h3>
	<div id="overdue_loan_page" class="action-ajax-load" 
		data-url="<@url value='/overdueReport/overdueLoanPage?idCard=${loanUser.documentNo}&spouseIdCard=${materEntity.documentNo}'/>"
		data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div>
	</div>
<!-- 逾期数据  end -->
	
	<!--代偿和逾期信息 begin -->
 		<div class="openBox"> 
 			<h3 class="mt20"> 
				<i class="jtIco1"></i>代偿和逾期信息 
			</h3> 
			<div class="action-ajax-load-show" 
 				data-url="<@url value='/oaDetail/overdue?billCode=${loanapply.billCode}'/>" 
 				data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none"></div> 
		</div>
	<!--代偿和逾期信息  end -->
	<!-- 夫妻双方担保贷款信息  begin -->
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco1"></i>夫妻双方担保贷款信息
		</h3>
		<div class="action-ajax-load-show"
		data-url='/loanrest/sponsorLoanapply?userId=${loanapply.loanId}'
		data-ajax-wait-img="<@cdn value='img.wait'/>" style="display: none">
	</div>
	</div>
	<!-- 夫妻双方担保贷款信息  end -->
	<#if loanapply.bankLoanName=='BC'>
	<!-- 中行征信调查反馈start -->
	<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>中行征信调查反馈
			</h3>
			<div class="action-ajax-load"
				data-url="<@url value='/oldo2olike/bc_zxfk?loanapplyNo=${loanapply.loanapplyNo}'/>" style="display: none"></div>
		</div>
	<!-- 中行征信调查反馈end -->
	
	<!-- 中行贷款申请反馈start -->
	<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>中行贷款申请反馈
			</h3>
			<div class="action-ajax-load"
				data-url="<@url value='/oldo2olike/bc_dkfk?loanapplyNo=${loanapply.loanapplyNo}'/>" style="display: none"></div>
		</div>
	<!-- 中行贷款申请反馈end -->
	</#if>
	<!-- 增加担保人  begin -->
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco1"></i>担保人
			<@permission permissionName="sponsorAddCode">
				<a class="action-ajax-btn fr" data-action-html="#o2o_SponsorList" href="/loanrest/sponsorDetail?loanapplyNo=${loanapply.loanapplyNo}">&nbsp;刷新&nbsp;</a>
				<#if custType=="NEW" || custType=="Z" ||
					custType=="ZF" || custType=="N" > <a class="action-ajax-btn fr edit btn_blue"
						data-url="<@url value='/loanrest/toAdd_sponsor?loanapplyNo=${loanapply.loanapplyNo}' />">新增加担保人</a>
				</#if>
			</@permission>
			<@permission permissionName="dbrPrint">
				<#if loanapply.wfType == "NF" || loanapply.wfType == "S" ||loanapply.wfType == "O" || loanapply.wfType == "HN">
				   <#if loanapply.bankLoanName=="BC">
				       <#if materEntity!=null>
						   <a class="fr edit btn_blue"   href="<@url value='/downloadMateDbPdf?loanapplyNo=${loanapply.loanapplyNo}'/>">配偶担保打印</a>
						</#if> 
						<a class="fr edit btn_blue"   href="<@url value='/downloadBusinessDbPdf?loanapplyNo=${loanapply.loanapplyNo}'/>">企业担保打印</a>
					</#if> 
			    </#if> 
		   </@permission> 
		</h3>
	    <div id="o2o_SponsorList" class="action-ajax-load-show" data-url="/loanrest/sponsorDetail?loanapplyNo=${loanapply.loanapplyNo}" style="display: none"></div>
	</div>
	<!-- 增加担保人  end -->
	
	<!--审核记录--> 
		<div class="detailsBox"> 
			<!--审核--> 
			<div class="openBox">
			<h3 class="mt20"><i class="jtIco1"></i>审核记录</h3>
			 <#if loanapply.zxDataSource == "1" >
				  <#if loanapply.loanType == "BP"||loanapply.loanType=='BP_JX'||loanapply.loanType=='SG'||loanapply.loanType=='YC'||loanapply.loanType=='SC' >
					<div class="action-ajax-load" data-url="<@url value='/wf/processNode/agreeInfo?referId=${loanapply.loanapplyNo}&amp;processType=CREDIT_BP' domain='o2o.admin.workflow'/>"  style="display: none" >审核历史加载中。。。</div>
					<#elseif (loanapply.loanType == "FQ" || loanapply.loanType == "EA")  >
					<div class="action-ajax-load" data-url="<@url value='/wf/processNode/agreeInfo?referId=${loanapply.loanapplyNo}&amp;processType=CREDIT_FQ' domain='o2o.admin.workflow'/>"  style="display: none" >审核历史加载中。。。</div>
					<#else>
					<div class="action-ajax-load" data-url="<@url value='/wf/processNode/agreeInfo?referId=${loanapply.loanapplyNo}&amp;processType=CREDIT' domain='o2o.admin.workflow'/>"  style="display: none" >审核历史加载中。。。</div>
			      </#if>
			  <#else>
				<div class="action-ajax-load" data-url="<@url value='/wf/processNode/agreeInfo?referId=${loanapply.loanapplyNo}&amp;processType=PROCESS_ACCESS' domain='o2o.admin.workflow'/>"  style="display: none" >审核历史加载中。。。</div>
			</#if>
			</div>
		</div>
	<!-- 动态按钮 -->
	<div  id="detailBtnDiv" class=" tac footFixed">
		<span class="action-ajax-load"
			data-url="<@url value='/detail/loan-detail-button?loanapplyNo=${loanapply.loanapplyNo}&billCode=${loanapply.billCode}&wfType=${loanapply.wfType}&o2oliketype=ZX'/>"></span>
	<#if (loanapply.wfType == "NEW" && loanapply.creatRo==user.no) || (loanapply.wfType == "NEW" && user.superAdministrator)>
	  <a class="btn_auto_30 btn_blue action-ajax-btn" href="<@url value='/rbadloan/cacle?loanapplyNo=${loanapply.loanapplyNo}&tType=CANCLE'/>" target="_blank">作废</a>
	</#if>		
	<#if loanapply.wfType == "O" || loanapply.wfType == "HN">
		<button type="button" class="btn_auto_30 btn_blue">已放款</button>
	</#if>
	</div>
</div>
<script type="text/javascript">
	function open_history() {
		$("#history .action-open-button").trigger("click");
	}
</script>
</@master>

